import 'package:dmz/base/pageWidget/base_stateful_widget.dart';
import 'package:dmz/business/mine/controller/seting_main_controller.dart';
import 'package:dmz/business/mine/widget/seting_widgets.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class MineSetingPage extends BaseStatefulWidget<SetingMainController> {
  const MineSetingPage({super.key});

  @override
  String titleString() => '设置'.tr;

  @override
  get updateId => 'setMain';

  @override
  Widget buildContent(BuildContext context) {
    controller.context = context;
    return ListView(children: [
      SetingWidgets.topWidgets(controller.pageAction),
      if (controller.moto.socket_type == 1)
        SetingWidgets.mindleWidget(
            controller.pageAction, controller.messageTypes),
      SetingWidgets.bottomWidget(controller.pageAction)
    ]);
  }
}
